package com.blb.productservice.config;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import lombok.extern.slf4j.Slf4j;

/**
 * 限流处理类
 */
@Slf4j
public class ProductControllerBlockHandler {

    //自定义限流方法
    public static String helloBlockHandler(BlockException ex){
        log.error("hello发生限流",ex);
        return "hello接口被限流了";
    }

}
